#include "stdafx.h"
#include "util.h"


std::vector<std::string> splitList(std::string str, const std::string sep) {
  std::vector<std::string> ret;
  while (str.find(sep) != std::string::npos) {
    ret.push_back(str.substr(0, str.find(sep)));
    str = str.substr(str.find(sep) + sep.length());
  }
  ret.push_back(str);
  return ret;
}